/* 所有返回数据的状态描述 */
class ResultEnum {
  static SAVE_SUCCESS = {
    code: 0,
    msg: "数据保存成功"
  }
  static GET_SUCCESS = {
    code: 0,
    msg: "数据查询成功"
  }
  static UPDATE_SUCCESS = {
    code: 0,
    msg: "数据更新成功"
  }
  static DELETE_SUCCESS = {
    code: 0,
    msg: "数据删除成功"
  }
  static GET_TOKEN_SUCCESS = {
    code: "000000",
    msg: "获取token成功"
  }

  static SAVE_ERROR = {
    code: 1001,
    msg: "数据保存失败"
  }
  static GET_ERROR = {
    code: 1002,
    msg: "数据查询失败"
  }
  static UPDATE_ERROR = {
    code: 1003,
    msg: "数据更新失败"
  }
  static DELETE_ERROR = {
    code: 1004,
    msg: "数据删除失败"
  }
  static GET_TOKEN_ERROR = {
    code: 0,
    msg: "获取token失败"
  }

  static GET_ACCESS_TOKEN_Expired = {
    code: "020001",
    msg: "accessToken过期"
  }

  static GET_REFRESH_TOKEN_Expired = {
    code: "020002",
    msg: "refreshToken过期"
  }
}

console.log(ResultEnum);

module.exports = {
  ResultEnum
}